//
//  MessageCell.m
//  TinyFortune
//
//  Created by lc on 16/6/3.
//  Copyright © 2016年 lc. All rights reserved.
//

#import "MessageCell.h"
#import "MessageModel.h"
@implementation MessageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)layoutSubviews{
    [super layoutSubviews];
    _icomImageView.layer.cornerRadius = 10 ;
    _icomImageView.layer.masksToBounds = YES ;
}
- (void)setModel:(MessageModel *)model{
    _model = model ;
    [self.icomImageView sd_setImageWithURL:[NSURL URLWithString:_model.url] placeholderImage:[UIImage imageNamed:@"default_avatar"]];
    self.name.text = _model.requestName ;
    self.Desc.text  = _model.desc;
}

@end
